package com.zhuss.core.db.dao.ext;

import com.zhuss.core.db.entity.Area;
import com.zhuss.bean.bo.core.area.SearchAreaBo;
import com.zhuss.bean.vo.core.area.ListAreaVo;
import com.zhuss.bean.vo.core.area.DetailAreaVo;
import java.util.List;
import org.apache.ibatis.annotations.*;
import com.zhuss.core.db.dao.gen.*;

/**
 * @description: 地域数据库Dao
 * @author: zhushanshuo
 * @create: Thu Apr 08 20:24:46 CST 2021
 **/

@Mapper
public interface AreaDao extends AreaMapper {
	
	void create(Area record);
	
	void delete(Area record);

	List<Area> listAll();

	List<Area> listById(@Param("areaIdList") List<Long> areaIdList);
	
	List<Area> listByName(@Param("name") String name);
	
	List<ListAreaVo> list(SearchAreaBo bo);
	
	Integer countList(SearchAreaBo bo);

	DetailAreaVo detail(@Param("areaId") Long areaId);

}
